/* ===========================================================
			Resonance
	NPC Name: 		Kinu
	Map(s): 		Queen's Path: Forest of the Start 4(130030003)
	Description: 	Quest - Skills?
=============================================================
Version 1.0 - Script Done.(16/6/2010)
=============================================================
*/

var status = -1;

function start(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
			qm.sendNext("Regular attacks are basics. Basics will only get you so far. The real hunting begins with skills. Keep that in mind as I urge you to think twice about rejecting this offer.");
			qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendNext("I've been waiting for you here, #h0# . My name is #p1102006#, the third oldest of the brothers. So my brother taught you how to use the regular attacks? Then you know what's coming up next. Yes, the #bskills#k. In the world of Maple, it's much more convenient to attack with skills than with regular attacks.");
	if(status == 1)
		qm.sendNextPrev("When you level up, you'll be awarded with some Skill Points, which means you should have some with you as well. Press #bS#k to open the skill window, and use up the Skill Points on skills you'd like to use. It'll be even more convenient for you #bif you designate the skills you'd like to use on the Quick Slots#k.");
	if(status == 2)
		qm.sendAcceptDecline("And now, we'll practice doing just that before you forget. There are numerous #o100121#s around the area. Use the skill, .#bThree snails#k to defeat #r3 #o100121#s#k and bring back #b1 #t4000483##k as evidence. I'll be here waiting for you.");
	if(status == 3){
		qm.forceStartQuest();
		qm.displayGuide(8);
		qm.dispose();
		}
	}
	
function end(mode, type, selection) {
    status++;
	if (mode != 1) {
	    if(type == 1 && mode == 0)
		    status -= 2;
		else{
		    qm.dispose();
			return;
		}
	}
	if(status == 0)
		qm.sendNext("So you were able to defeat #o100121# and bring back #t4000483#. That's great! #bOnce you officially become a Knight, you'll acquire 3 Skill Points per every level up#k. Follow the arrow to the left and you'll find #b#p1102007##k, who's in charge of the next stage.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 40 exp");
	if(status == 1){
		qm.completeQuest();
		qm.gainItem(4000483, -1);
		qm.gainExp(40);
		qm.displayGuide(6);
		qm.dispose();
	}
}
		